﻿using System.ComponentModel.DataAnnotations;
using Pyramid.Extentions;

namespace Pyramid.Models
{
	public class StaffAchievementViewModel
	{
		public int StaffId { get; set; }

		[Display(Name = "工号")]
		public string StaffCode { get; set; }

		[Display(Name = "姓名")]
		public string FullName { get; set; }

		[Display(Name = "性别")]
		public int Gender { get; set; }

		public Genders GenderEnum
		{
			get { return (Genders) Gender; }
		}

		public string GenderString
		{
			get { return ((Genders) Gender).ToDescription(); }
		}

		[Display(Name = "所在部门")]
		public string DepartmentName { get; set; }

		[Display(Name = "担任职务")]
		public string Position { get; set; }

		[Display(Name = "系统账号")]
		public string UserId { get; set; }

		[Display(Name = "总业绩")]
		public decimal TotalAmount { get; set; }
	}
}